package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OaTaxRateMapper;
import com.ruoyi.system.domain.OaTaxRate;
import com.ruoyi.system.service.IOaTaxRateService;

/**
 * 汇率Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-13
 */
@Service
public class OaTaxRateServiceImpl implements IOaTaxRateService 
{
    @Autowired
    private OaTaxRateMapper oaTaxRateMapper;

    /**
     * 查询汇率
     * 
     * @param id 汇率主键
     * @return 汇率
     */
    @Override
    public OaTaxRate selectOaTaxRateById(Long id)
    {
        return oaTaxRateMapper.selectOaTaxRateById(id);
    }

    /**
     * 查询汇率列表
     * 
     * @param oaTaxRate 汇率
     * @return 汇率
     */
    @Override
    public List<OaTaxRate> selectOaTaxRateList(OaTaxRate oaTaxRate)
    {
        return oaTaxRateMapper.selectOaTaxRateList(oaTaxRate);
    }

    /**
     * 新增汇率
     * 
     * @param oaTaxRate 汇率
     * @return 结果
     */
    @Override
    public int insertOaTaxRate(OaTaxRate oaTaxRate)
    {
        return oaTaxRateMapper.insertOaTaxRate(oaTaxRate);
    }

    /**
     * 修改汇率
     * 
     * @param oaTaxRate 汇率
     * @return 结果
     */
    @Override
    public int updateOaTaxRate(OaTaxRate oaTaxRate)
    {
        return oaTaxRateMapper.updateOaTaxRate(oaTaxRate);
    }

    /**
     * 批量删除汇率
     * 
     * @param ids 需要删除的汇率主键
     * @return 结果
     */
    @Override
    public int deleteOaTaxRateByIds(Long[] ids)
    {
        return oaTaxRateMapper.deleteOaTaxRateByIds(ids);
    }

    /**
     * 删除汇率信息
     * 
     * @param id 汇率主键
     * @return 结果
     */
    @Override
    public int deleteOaTaxRateById(Long id)
    {
        return oaTaxRateMapper.deleteOaTaxRateById(id);
    }
}
